<template>
    <view>
        <!-- template对应的原始代码，为保证正常显示，已对其进行隐藏。 -->
        <block name="menuTpl" v-if="false">
            <view class="tab-bar">
                <view v-if="returnHome" class="tab-bar-home" @tap="url" data-type="relaunch" data-url="/pages/home/index/home_index">
                    <text class="icon-homefill text-grey"></text>
                </view>

                <view class="tab-bar-border"></view>
                <view class="tab-bar-item" @tap="url" data-type="relaunch" data-url="../../default/index/default_index">
                    <image class="tab-icon" :src="'../../skin/images/tabbar/home' + ('calendar_index' == 'home_index' ? '_cur' : '') + '.png'"></image>
                    <view :class="'tab-text ' + ('calendar_index' == 'home_index' ? 'text-project' : '')">{{ skin.MENU_ITEM[0] }}</view>
                </view>

                <view class="tab-bar-item" @tap="url" data-type="relaunch" data-url="../../news/cate1/news_cate1">
                    <image class="tab-icon" :src="'../../skin/images/tabbar/cate1' + ('calendar_index' == 'news_cate1' ? '_cur' : '') + '.png'"></image>
                    <view :class="'tab-text ' + ('calendar_index' == 'news_cate1' ? 'text-project' : '')">{{ skin.newsCateArr[0].label }}</view>
                </view>

                <view class="tab-bar-item" @tap="url" data-type="relaunch" data-url="../../news/cate2/news_cate2">
                    <image class="tab-icon" :src="'../../skin/images/tabbar/cate2' + ('calendar_index' == 'news_cate2' ? '_cur' : '') + '.png'"></image>
                    <view :class="'tab-text ' + ('calendar_index' == 'news_cate2' ? 'text-project' : '')">{{ skin.newsCateArr[1].label }}</view>
                </view>

                <view class="tab-bar-item" @tap="url" data-type="relaunch" data-url="../../calendar/index/calendar_index">
                    <image class="tab-icon" :src="'../../skin/images/tabbar/day' + ('calendar_index' == 'calendar_index' ? '_cur' : '') + '.png'"></image>
                    <view :class="'tab-text ' + ('calendar_index' == 'calendar_index' ? 'text-project' : '')">{{ skin.MENU_ITEM[1] }}</view>
                </view>
                <view class="tab-bar-item" @tap="url" data-type="relaunch" data-url="../../my/index/my_index">
                    <image class="tab-icon" :src="'../../skin/images/tabbar/my' + ('calendar_index' == 'my_index' ? '_cur' : '') + '.png'"></image>
                    <view :class="'tab-text ' + ('calendar_index' == 'my_index' ? 'text-project' : '')">{{ skin.MENU_ITEM[2] }}</view>
                </view>
            </view>
        </block>
    </view>
</template>

<style>
@import './menu_tpl.css';
</style>
